#include<bits/stdc++.h>
using namespace std;
#define int long long 
const int p=998244353;
int km(int x,int n){
	int res=1;
	while(n){
		if(n&1) res=res*x%p;
		x=x*x%p;
		n/=2;
	}
	return res;
}
int f[1005][1005];
signed main(){
	ios::sync_with_stdio(false);
	int n,m,k;
	cin>>n>>m>>k; 
	f[0][0]=1;
	for(int i=0;i<=k-1;i++){
		for(int j=0;j<=n-1;j++){
			for(int l=1;l<=m;l++){
				int x=j+l;
				if(x>=n)
					x=(n-(x-n));
				f[i+1][x]=(f[i+1][x]+f[i][j]*km(m,p-2)%p)%p;
			}
		}
	}
	int res=0;
	for(int i=1;i<=k;i++)
		res=(res+f[i][n])%p;
	cout<<res<<endl;
}